import requestHttp from "@/utils/request";

export default{
    async search(start,size,data){
        return await requestHttp.post(`/rental/autoInfo/${start}/${size}`,data);
    },
    async add(data){
        return await requestHttp.post(`/rental/autoInfo`,data);
    },
    async update(data){
        return await requestHttp.put(`/rental/autoInfo`,data);
    },
    async delete(ids){
        return await requestHttp.delete(`/rental/autoInfo/${ids}`);
    },
    async exist(data){
        return await requestHttp.post(`/rental/autoInfo/exist`,data);
    },
    async toBeMaintain(){
        return await requestHttp.get(`/rental/autoInfo/toBeMaintain`);
    }

}